package com.zk.shop.entity;

public class CartItem {
    private int itemId;
    private User user;
    private Goods goods;
    private int buyNum;

    public CartItem() {
    }

    public CartItem(User user, Goods goods) {
        this.user = user;
        this.goods = goods;
    }

    public CartItem(User user, Goods goods, int buyNum) {
        this.user = user;
        this.goods = goods;
        this.buyNum = buyNum;
    }

    public CartItem(int itemId, User user, Goods goods, int buyNum) {
        this.itemId = itemId;
        this.user = user;
        this.goods = goods;
        this.buyNum = buyNum;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(int buyNum) {
        this.buyNum = buyNum;
    }
}
